<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
<com></com>
</div>
<script>
    let com = {
        template:`
        <div>这是第一个组件</div>
        `,
    };
    Vue.component("com",com)
    new Vue({
        el:"#app",
        data:{
        },
    })
</script>
</body>
</html>